import { post, get } from './../utils/http'
import URL from "./../utils/url";
import { Toast } from 'vant';
import router from "../router";
export default {
    async

    Get_userData({ commit }) {
        post(`${URL.member.personal}`, {}).then(res => {
            if (res.code == 0) {
              commit('SET_USERDATA', res.data);
            } else {
              Toast(res.message);
            }
        })
    },
    resetVuex({ commit }) {
        commit("SET_USERDATA", {});
        commit("SET_TOKEN", "");
        commit("SET_LOGIN", false);
    },

    UpadteHtml5Tags({ commit }){
        post(URL.common.h5page_list, {}).then((res) => {
            if (res.code == 0) {
                commit("SET_HTML5TAGS", res.data);
            } else {
                Toast(res.message)
            }
        });
    },
  SetWelfareEyes_2({ commit }, bShow) {
    commit("SET_WELFAREEYES_2", bShow);
  },
}
